home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
ezzcomm.zip
/
AGELIST.T
< prev
next >
Wrap
Text File
|
1991-02-16
|
2KB
|
33 lines
: EZ-ZCOMM Copyright 1991 by Roger E. Hough, All Rights Reserved.
: Licensed for use at your own risk without fee. Altered versions,
: when distributed, must be clearly marked as altered and accompanied
: by the originals.
:
: compute age of file list for a remote board
display inhibit;if r nolog close
ki;if !f%n7/%remote.lst set s0 32767;display noinhibit;return
set s0 0;if !%tmp display noinhibit;return
ena -y >%tmp/scratch.wrk;dird %n7/%remote.lst;>
if !f%tmp/scratch.wrk display noinhibit;return
set z1 "";open %tmp/scratch.wrk;grab z1;if t nolog closetx
del %tmp/scratch.wrk;split z1 " " " " " " "-" "-"
display noinhibit
: Date of last file listing: z3 = Month, z4 = Day, z3 = Year
setn z0 z5+0;setn z1 z3+0;setn z2 z4+0;if az0<80 setn z0 z0+100
: Date of last file listing: z0 = Year, z1 = Month, z2 = Day
setn z3 z0/4*4;setn z4 z0-1/4;setn z9 z0*365+z4+z2
ife az1>1 setn z9 z9+31;if az1>2 setn z9 z9+28;if Iz0,z3 setn z9 z9+1
ife az1>3 setn z9 z9+31;ife az1>4 setn z9 z9+30;if az1>5 setn z9 z9+31
ife az1>6 setn z9 z9+30;ife az1>7 setn z9 z9+31;if az1>8 setn z9 z9+31
ife az1>9 setn z9 z9+30;ife az1>10 setn z9 z9+31;if az1>11 setn z9 z9+30
sets s0 %z9;split t " " "-" "-"
setn z0 z3+0;setn z1 z1+0;setn z2 z2+0;if az0<80 setn z0 z0+100
: Current date: z0 = Year, z1 = Month, z2 = Day
setn z3 z0/4*4;setn z4 z0-1/4;setn z9 z0*365+z4+z2
ife az1>1 setn z9 z9+31;if az1>2 setn z9 z9+28;if Iz0,z3 setn z9 z9+1
ife az1>3 setn z9 z9+31;ife az1>4 setn z9 z9+30;if az1>5 setn z9 z9+31
ife az1>6 setn z9 z9+30;ife az1>7 setn z9 z9+31;if az1>8 setn z9 z9+31
ife az1>9 setn z9 z9+30;ife az1>10 setn z9 z9+31;if az1>11 setn z9 z9+30
setn s0 z9-s0
return